<html>
	<head>
		<title>
		Welcome to web game !!!
		</title>
		<script>
			function loginBtn_click() {
				try{
					//alert("Login clicked");
					parent.connectServer();
					//alert("hehehe");
					var username = document.getElementById('username').value;
					var password = document.getElementById('password').value;
					parent.userlogin(username,password);
				}
				catch (err) {
					alert(err.message);
				}
			}
		</script>
	</head>
	<body>
		<form id="myform">
			<table>
				<tr>
					<td>Username: </td>			
					<td><input id="username" type="text"></input></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input id="password" type="text"></input></td>
				</tr>
				<tr>
					<td><input type="submit" value="Login" onclick="loginBtn_click();"></input></td>
				</tr>
			</table>
		</form>
	</body>
<html>